package org.dromara.trace.domain.bo;

import org.dromara.trace.domain.TraceSellpro;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 溯源产品业务对象 trace_sellpro
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TraceSellpro.class, reverseConvertGenerate = false)
public class TraceSellproBo extends BaseEntity {

    /**
     * 产品ID
     */
    @NotNull(message = "产品ID不能为空", groups = { EditGroup.class })
    private Long sellproId;

    /**
     * 产品名称
     */
    @NotBlank(message = "产品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sellproName;

    /**
     * 产地
     */
    @NotBlank(message = "产地不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sellproArea;

    /**
     * 产品重量
     */
    @NotBlank(message = "产品重量不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sellproWeight;

    /**
     * 产品规格
     */
    @NotBlank(message = "产品规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sellproGuige;

    /**
     * 产品图片
     */
    @NotBlank(message = "产品图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sellproImg;

    /**
     * 溯源页面模版ID
     */
    @NotNull(message = "溯源页面模版ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long templateId;

    /**
     * 溯源码模版ID
     */
    @NotNull(message = "溯源码模版ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long codeTemplateId;

    /**
     * 种质ID
     */
    @NotBlank(message = "种质ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String germplasmId;

    /**
     * 批次ID
     */
    @NotBlank(message = "批次ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String batchId;

    /**
     * 地块ID
     */
    @NotBlank(message = "地块ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String landId;

    /**
     * 环境设备ID
     */
    @NotBlank(message = "环境设备ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceId;

    /**
     * 监控设备ID
     */
    @NotBlank(message = "监控设备ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cameraId;

    /**
     * 溯源人员ID
     */
    @NotBlank(message = "溯源人员ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String staffId;

    /**
     * 店铺ID
     */
    @NotBlank(message = "店铺ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shopId;

    /**
     * 溯源页面
     */
    @NotBlank(message = "溯源页面不能为空", groups = { AddGroup.class, EditGroup.class })
    private String h5Url;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态 1可用 2不可用 trace_status
     */
    @NotBlank(message = "状态 1可用 2不可用 trace_status不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * 基地ID
     */
    @NotNull(message = "基地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long baseId;

    /**
     * 部门ID
     */
    @NotNull(message = "部门ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


}
